<template>
  <view class="menu-item">
    <image class="icon" :src="icon" />
    <text class="text">{{ text }}</text>
  </view>
</template>

<script>
export default {
  props: {
    icon: {
      type: String,
      required: true
    },
    text: {
      type: String,
      required: true
    }
  }
}
</script>

<style scoped lang="scss">
.menu-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  position: relative;

  &::after {
    content: '';
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 0;
    height: 1px;
    background-color: #e5e5e5;
  }

  &:last-child::after {
    display: none;
  }

  .icon {
    width: 24px;
    height: 24px;
    margin-right: 16px;
  }

  .text {
    font-size: 16px;
    color: #333333;
  }
}
</style>
